import Vue from 'vue'
import Vuex from 'vuex'
import user from '@/store/modules/user'
import page from '@/store/modules/page'
import getters from './getters'
import chronic from '@/store/modules/chronic'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    user,
    chronic: {
      namespaced: true,
      ...chronic
    },
    page: {
      namespaced: true,
      ...page
    }
  },
  getters
})

export default store
